package com.qf.service.impl;

import com.qf.dao.CarsDao;
import com.qf.pojo.Cars;
import com.qf.service.CarsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CarsServiceImpl  implements CarsService {
    @Autowired
    private CarsDao carsDao;
    @Override
    public List<Cars> selectAll() {
        return carsDao.selectAll();
    }

    @Override
    public int deleOne(int cid) {
        return carsDao.deleOne(cid);
    }

    @Override
    public List<Cars> selectcarByCid(int cid) {
        return carsDao.selectcarByCid(cid);
    }

    @Override
    public Cars selectOneByCid(int cid) {
        return carsDao.selectOne(cid);
    }
}
